package com.mallcai.bigdata.uid.buffer;

/**
 * described :
 * If cursor catches the tail it means that the ring buffer is empty, any more buffer take request will be rejected.
 * Specify the policy to handle the reject. This is a Lambda supported interface.
 * <p>
 * Created by oneape<oneape15@163.com> on 2019-04-04 19:09.
 * Modify:
 */
@FunctionalInterface
public interface RejectedTakeBufferHandler {

    /**
     * Reject take buffer request
     *
     * @param ringBuffer RingBuffer
     */
    void rejectTakeBuffer(RingBuffer ringBuffer);

}
